//-----------------------------------------------
//              SD.c
//      SD card library
//      Arthur Benemann 21/03/2012
//      Based on Lucio Di Jasio Book
//-----------------------------------------------
//      Description:
//
//-----------------------------------------------
//      Requeriments:
//
//-----------------------------------------------

#ifndef _SD
#define _SD

#define FALSE   0
#define TRUE    !FALSE
#define FAIL    0
         

typedef unsigned long LBA; // logic block address, 32 bit wide

void initSD( void);
int initMedia( void);   // initializes the SD/MMC memory device

int ReadSECTOR ( LBA, unsigned char *);  // reads a block of data
int WriteSECTOR( LBA, unsigned char *);  // writes a block of data



#endif
